.class Lcom/brixd/niceapp/community/CommunityAppGridFragment$1;
.super Ljava/lang/Object;
.source "CommunityAppGridFragment.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/CommunityAppGridFragment;->initActions(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/CommunityAppGridFragment;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    .prologue
    .line 104
    iput-object p1, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$1;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .registers 9
    .param p2, "view"    # Landroid/view/View;
    .param p3, "position"    # I
    .param p4, "id"    # J
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 108
    .local p1, "parent":Landroid/widget/AdapterView;, "Landroid/widget/AdapterView<*>;"
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$1;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    iget-object v1, v1, Lcom/brixd/niceapp/community/CommunityAppGridFragment;->mAppModels:Ljava/util/ArrayList;

    invoke-virtual {v1, p3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/brixd/niceapp/community/model/CommunityAppModel;

    .line 109
    .local v0, "model":Lcom/brixd/niceapp/community/model/CommunityAppModel;
    const-string v1, "daily"

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->getSource()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1c

    .line 110
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$1;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    # invokes: Lcom/brixd/niceapp/community/CommunityAppGridFragment;->requestDailyDetail(Lcom/brixd/niceapp/community/model/CommunityAppModel;I)V
    invoke-static {v1, v0, p3}, Lcom/brixd/niceapp/community/CommunityAppGridFragment;->access$000(Lcom/brixd/niceapp/community/CommunityAppGridFragment;Lcom/brixd/niceapp/community/model/CommunityAppModel;I)V

    .line 114
    :cond_1b
    :goto_1b
    return-void

    .line 111
    :cond_1c
    const-string v1, "community"

    invoke-virtual {v0}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->getSource()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1b

    .line 112
    iget-object v1, p0, Lcom/brixd/niceapp/community/CommunityAppGridFragment$1;->this$0:Lcom/brixd/niceapp/community/CommunityAppGridFragment;

    # invokes: Lcom/brixd/niceapp/community/CommunityAppGridFragment;->requestCommunityDetail(Lcom/brixd/niceapp/community/model/CommunityAppModel;I)V
    invoke-static {v1, v0, p3}, Lcom/brixd/niceapp/community/CommunityAppGridFragment;->access$100(Lcom/brixd/niceapp/community/CommunityAppGridFragment;Lcom/brixd/niceapp/community/model/CommunityAppModel;I)V

    goto :goto_1b
.end method
